<template>
  <!-- 应急物资 -->
  <div>
    <el-table
      :data="tableData"
      style="margin-top: 10px"
      class="backtable"
      height="2.5rem"
    >
      <el-table-column label="序号" width="80" align="center">
        <template slot-scope="scope">
          <span style="margin-left: 10px">{{ scope.$index + 1 }}</span>
        </template>
      </el-table-column>
      <el-table-column label="装备名称" align="center" prop="equipmentName" />
      <el-table-column label="入库日期" align="center" prop="warehousingDate">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.warehousingDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="数量" align="center" prop="equipmentNum" />
    </el-table>
  </div>
</template>

<script>
import { listSysEmergencyInfo } from '@/api/emergency/sysEmergencyInfo'
export default {
  data() {
    return {
      tableData: []
    }
  },
  methods: {
    gettabData() {
      listSysEmergencyInfo(this.queryParams).then(response => {
        this.tableData = response.rows
      })
    }
  },
  created() {
    this.gettabData()
  }
}
</script>


